import Http from "~/apis/utils/http";

class SystemUser extends Http {
  async filterData(params?: any) {
    return await this.post("sysUser/filter", params);
  }

  deleteById(id: any) {
    return this.delete(`sysUser/delete/${id}`);
  }

  deleteMany(ids: any) {
    return this.post("sysUser/deleteMany", ids);
  }

  update(model: any) {
    return this.post("sysUser/update", model);
  }

  create(model: any) {
    return this.post("sysUser/create", model);
  }
}

export default new SystemUser();
